home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / DebugWriter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.8 KB  |  39 lines

  1. package com.extensibility.xml;
  2.  
  3. public class DebugWriter extends SchemaWriter implements DebugTags {
  4.    ElemProxy elemProxy = new ElemProxy(this);
  5.    AttrProxy attrProxy = new AttrProxy(this);
  6.  
  7.    public DebugWriter(SchemaIntf var1) {
  8.       super(var1, var1.getURI());
  9.    }
  10.  
  11.    public DebugWriter(SchemaIntf var1, URI var2) {
  12.       super(var1, var2);
  13.    }
  14.  
  15.    protected void writeHeader(SXE var1) {
  16.       var1.writeComment("Internal debug format generated by XML Authority.");
  17.       var1.writeElem("Schema");
  18.       var1.writeLineBreak();
  19.    }
  20.  
  21.    protected SchemaWriter.DeclWriterProxyIntf createProxy(ElementDeclaration var1) {
  22.       if (this.elemProxy == null) {
  23.          this.elemProxy = new ElemProxy(this);
  24.       }
  25.  
  26.       this.elemProxy.setDecl(var1);
  27.       return this.elemProxy;
  28.    }
  29.  
  30.    protected SchemaWriter.DeclWriterProxyIntf createProxy(AttributeDeclaration var1) {
  31.       if (this.attrProxy == null) {
  32.          this.attrProxy = new AttrProxy(this);
  33.       }
  34.  
  35.       this.attrProxy.setDecl(var1);
  36.       return this.attrProxy;
  37.    }
  38. }
  39.